package com.idsmanager.otp;

import com.idsmanager.otp.result.IdTokenResult;

/**
 * 测试获取access_token类
 * Created by Shaofei Du on 2016/11/17.
 */
public class OTPIdTokenTest {
    public static void main(String[] args){
        //IDP服务器地址
        String idpHost = "https://jzyt.idp.idsmanager.com:8040";
        //appKey
        String appKey = "817444b273784f7d8f49a6750802118fxRUt1vPWwbf";
        //appSecret
        String appSecret = "Lg9fnIB0XB552kmFMeYz2GGBo913RI81mGZNr734Df";
        //获取access_token
        IdTokenObtain tokenObtain = new IdTokenObtain(idpHost,appKey,appSecret);
        IdTokenResult result = tokenObtain.retrieve();
        System.out.print(result);
    }
}
